<?php
class FeedbackModel extends model
{
	static $_instance = null;

	static function getInstance ()
	{
		if (is_null(self::$_instance)) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}
	
	// 件数
	function FeedbackCount($p)
	{
		$rs = $this->file("FeedbackCount",$p)->s(1);
		return $rs["c"];
	}
	
	// 记录
	function FeedbackList($p)
	{
		return $this->file("Feedback",$p)->s();
	}
	
	// 增加记录
	function FeedbackAdd($p)
	{
		return $this->sql("replace into crm_feedback(`business_id`,`satisfaction`,`content1`,`content2`)values([id],[returnNum],'[returnCon1]','[returnCon2]')",$p)->i();
	}
}